package beans;

import lombok.Data;

import java.util.List;

/***
 * @author hunter.d
 * @qq 657270652
 * @wx haitao-duan
 * @date 2021/3/14
 **/
@Data
public class CanalBinlog {
    private List<CanalRuleRecord> data;
    private boolean isDdl;
    private String type;
}

/*
{
  "data":[
    {"id":"1","rule_name":"rule_1","rule_code":"{a:1,b:3}","rule_type":"1","rule_status":"0","create_time":"2021-03-14 11:30:00","modify_time":"2021-03-14 11:30:03"}
  ],
  "database":"realtimedw",
  "es":1615692770000,
  "id":3,
  "isDdl":false,
  "mysqlType":{"id":"int(11)","rule_name":"varchar(255)","rule_code":"varchar(255)","rule_type":"tinyint(4)","rule_status":"tinyint(4)","create_time":"datetime","modify_time":"datetime"},
  "old":[
    {"rule_status":"1"}
  ],
  "pkNames":["id"],
  "sql":"",
  "sqlType":{"id":4,"rule_name":12,"rule_code":12,"rule_type":-6,"rule_status":-6,"create_time":93,"modify_time":93},
  "table":"canal_rule",
  "ts":1615692770854,
  "type":"UPDATE"
}
*/